<?php /* Smarty version Smarty-3.1.12, created on 2013-04-26 03:58:00
         compiled from "/www/htdocs/w00fc40b/dota2league/templates/index/loggedIn/wallOfFame/lastMatches/lastMatchesTable.tpl" */ ?>
<?php /*%%SmartyHeaderCode:13845109995179add99da660-71933584%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'db6b3946c856e4e885e2e0d35c512a636e9a3da3' => 
    array (
      0 => '/www/htdocs/w00fc40b/dota2league/templates/index/loggedIn/wallOfFame/lastMatches/lastMatchesTable.tpl',
      1 => 1366941477,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '13845109995179add99da660-71933584',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.12',
  'unifunc' => 'content_5179add9a264e9_05636743',
  'variables' => 
  array (
    'data' => 0,
    'v' => 0,
    'labelClass' => 0,
    'teamWon' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5179add9a264e9_05636743')) {function content_5179add9a264e9_05636743($_smarty_tpl) {?><?php if (count($_smarty_tpl->tpl_vars['data']->value)>0&&is_array($_smarty_tpl->tpl_vars['data']->value)){?>
<table class="table table-striped">
	<thead>
		<tr align="center">
			<th>ID</th>
			<th>Mode</th>
			<th>Result</th>
		</tr>
	</thead>
	<tbody>
		<?php  $_smarty_tpl->tpl_vars['v'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['v']->_loop = false;
 $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['data']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['v']->key => $_smarty_tpl->tpl_vars['v']->value){
$_smarty_tpl->tpl_vars['v']->_loop = true;
 $_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['v']->key;
?>
		<?php if ($_smarty_tpl->tpl_vars['v']->value['TeamWonID']==1){?>
			<?php $_smarty_tpl->tpl_vars["teamWon"] = new Smarty_variable("The Radiant", null, 0);?>
			<?php $_smarty_tpl->tpl_vars["labelClass"] = new Smarty_variable("success", null, 0);?>
		<?php }elseif($_smarty_tpl->tpl_vars['v']->value['TeamWonID']==2){?>
			<?php $_smarty_tpl->tpl_vars["teamWon"] = new Smarty_variable("The Dire", null, 0);?>
			<?php $_smarty_tpl->tpl_vars["labelClass"] = new Smarty_variable("important", null, 0);?>
		<?php }?>
		<tr class="">
			<td><a href="match.php?matchID=<?php echo $_smarty_tpl->tpl_vars['v']->value['MatchID'];?>
"><?php echo $_smarty_tpl->tpl_vars['v']->value['MatchID'];?>
</a></td>
			<td><span class="t" title="<?php echo $_smarty_tpl->tpl_vars['v']->value['MatchModeName'];?>
"><?php echo $_smarty_tpl->tpl_vars['v']->value['MatchModeShortcut'];?>
</span></td>
			<td><span class="label label-<?php echo $_smarty_tpl->tpl_vars['labelClass']->value;?>
"><?php echo $_smarty_tpl->tpl_vars['teamWon']->value;?>
</span></td>
		</tr>
		<?php } ?>
	</tbody>
</table>

<?php }else{ ?>
<div class="alert fade in">No Matches found!</div>
<?php }?><?php }} ?>